﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SharpDiary.Core.Attributes
{
    /// <summary>
    /// 模块设置特性。
    /// </summary>
    public class SettingsAttribute : Attribute
    {
        #region Fields & Properties

        private string _id = string.Empty;
       
        /// <summary>
        /// 编码。
        /// </summary>
        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }

        private string _name = string.Empty;

        /// <summary>
        /// 名称。
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        #endregion

        #region Constructors

        /// <summary>
        /// 模块设置特性。
        /// </summary>
        /// <param name="id">编码</param>
        /// <param name="name">名称</param>
        public SettingsAttribute(string id, string name)
        {
            _id = id;
            _name = name;
        }

        #endregion
    }
}
